home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / Makefile < prev    next >
Makefile  |  2002-10-24  |  6KB  |  204 lines

  1. # $Id: Makefile.in,v 1.22 2001/10/27 18:17:22 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998 Free Software Foundation, Inc.                          #
  4. #                                                                            #
  5. # Permission is hereby granted, free of charge, to any person obtaining a    #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation  #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute    #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the  #
  11. # following conditions:                                                      #
  12. #                                                                            #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software.                        #
  15. #                                                                            #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
  22. # DEALINGS IN THE SOFTWARE.                                                  #
  23. #                                                                            #
  24. # Except as contained in this notice, the name(s) of the above copyright     #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written               #
  27. # authorization.                                                             #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
  31. #
  32. # Master Makefile for ncurses library.
  33.  
  34. SHELL = /bin/sh
  35.  
  36. DESTDIR=
  37. CF_MFLAGS =  DESTDIR="$(DESTDIR)"
  38.  
  39.  
  40.  
  41. NCURSES_MAJOR    = 5
  42. NCURSES_MINOR    = 3
  43. NCURSES_PATCH    = 20021012
  44.  
  45. prefix        = /gg
  46. exec_prefix    = ${prefix}
  47.  
  48. bindir        = ${exec_prefix}/bin
  49. ticdir        = /gg/share/terminfo
  50. includedir    = $(prefix)/include/ncurses
  51. libdir        = ${exec_prefix}/lib
  52. mandir        = ${prefix}/man
  53.  
  54. INSTALL        = /bin/install -c
  55. INSTALL_DATA    = ${INSTALL} -m 644
  56.  
  57. DIRS_TO_MAKE    = lib objects
  58.  
  59. all ::    $(DIRS_TO_MAKE)
  60.  
  61. $(DIRS_TO_MAKE) :
  62.     mkdir $@
  63.  
  64. preinstall :
  65.     @ echo ''
  66.     @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
  67.     @ echo ''
  68.     @ echo '      bin directory: '$(bindir)
  69.     @ echo '      lib directory: '$(libdir)
  70.     @ echo '  include directory: '$(includedir)
  71.     @ echo '      man directory: '$(mandir)
  72.     @ echo ' terminfo directory: '$(ticdir)
  73.     @ echo ''
  74.     @ test "$(includedir)" = "$(prefix)/include" || \
  75.         echo '** Include-directory is not in a standard location'
  76.     @ test ! -f $(includedir)/termcap.h || \
  77.         fgrep NCURSES_VERSION $(includedir)/termcap.h >/dev/null || \
  78.         echo '** Will overwrite non-ncurses termcap.h'
  79.     @ test ! -f $(includedir)/curses.h || \
  80.         fgrep NCURSES_VERSION $(includedir)/curses.h >/dev/null || \
  81.         echo '** Will overwrite non-ncurses curses.h'
  82.  
  83. # Put the common rules here so that we can easily construct the list of
  84. # directories to visit.
  85. all \
  86. clean \
  87. distclean \
  88. mostlyclean \
  89. realclean \
  90. depend \
  91. sources \
  92. uninstall \
  93. install ::
  94.     cd man && $(MAKE) $(CF_MFLAGS) $@
  95.     cd include && $(MAKE) $(CF_MFLAGS) $@
  96.     cd ncurses && $(MAKE) $(CF_MFLAGS) $@
  97.     cd progs && $(MAKE) $(CF_MFLAGS) $@
  98.     cd tack && $(MAKE) $(CF_MFLAGS) $@
  99.     cd panel && $(MAKE) $(CF_MFLAGS) $@
  100.     cd menu && $(MAKE) $(CF_MFLAGS) $@
  101.     cd form && $(MAKE) $(CF_MFLAGS) $@
  102.     cd test && $(MAKE) $(CF_MFLAGS) $@
  103.     cd misc && $(MAKE) $(CF_MFLAGS) $@
  104. #    cd c++ && $(MAKE) $(CF_MFLAGS) $@
  105.  
  106. libs \
  107. install.libs \
  108. uninstall.libs \
  109. install.includes \
  110. uninstall.includes ::
  111.     cd include && $(MAKE) $(CF_MFLAGS) $@
  112.  
  113. lint \
  114. libs \
  115. lintlib \
  116. install.libs \
  117. uninstall.libs \
  118. install.ncurses \
  119. uninstall.ncurses ::
  120.     cd ncurses && $(MAKE) $(CF_MFLAGS) $@
  121.  
  122. lint \
  123. libs \
  124. lintlib \
  125. install.libs \
  126. uninstall.libs \
  127. install.progs \
  128. uninstall.progs ::
  129.     cd progs && $(MAKE) $(CF_MFLAGS) $@
  130.  
  131. lint \
  132. libs \
  133. lintlib \
  134. install.libs \
  135. uninstall.libs \
  136. install.tack \
  137. uninstall.tack ::
  138.     cd tack && $(MAKE) $(CF_MFLAGS) $@
  139.  
  140. install.includes \
  141. uninstall.includes \
  142. lint \
  143. libs \
  144. lintlib \
  145. install.libs \
  146. uninstall.libs \
  147. install.panel \
  148. uninstall.panel ::
  149.     cd panel && $(MAKE) $(CF_MFLAGS) $@
  150.  
  151. install.includes \
  152. uninstall.includes \
  153. lint \
  154. libs \
  155. lintlib \
  156. install.libs \
  157. uninstall.libs \
  158. install.menu \
  159. uninstall.menu ::
  160.     cd menu && $(MAKE) $(CF_MFLAGS) $@
  161.  
  162. install.includes \
  163. uninstall.includes \
  164. lint \
  165. libs \
  166. lintlib \
  167. install.libs \
  168. uninstall.libs \
  169. install.form \
  170. uninstall.form ::
  171.     cd form && $(MAKE) $(CF_MFLAGS) $@
  172.  
  173. lint \
  174. libs \
  175. lintlib \
  176. install.libs \
  177. uninstall.libs \
  178. install.test \
  179. uninstall.test ::
  180.     cd test && $(MAKE) $(CF_MFLAGS) $@
  181.  
  182. #install.includes \
  183. #uninstall.includes \
  184. #libs \
  185. #lintlib \
  186. #install.libs \
  187. #uninstall.libs \
  188. #install.c++ \
  189. #uninstall.c++ ::
  190. #    cd c++ && $(MAKE) $(CF_MFLAGS) $@#
  191.  
  192. install.data \
  193. uninstall.data ::
  194.     cd misc && $(MAKE) $(CF_MFLAGS) $@
  195.  
  196. install.man \
  197. uninstall.man ::
  198.     cd man && $(MAKE) $(CF_MFLAGS) $@
  199.  
  200. distclean ::
  201.     rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
  202.     rm -f headers.sh headers.sed
  203.     rm -rf $(DIRS_TO_MAKE)
  204.